number = eval(input("输入一个数："))
factor=2
while factor <= number :
    if number % factor == 0:
        number = number / factor
        print(factor, end = " ")
    else:
        factor += 1